const http = require('http')
const fs = require('fs')
http.createServer(function(req, res) {
    console.log('request come', req.url)
    const html=fs.readFileSync('test.html','utf-8')
    res.writeHead(200,{
    	'content-type':'text/html'
    })

    res.end(html)
}).listen(8888)
console.info('listen on 8888');